{extend name="public/base" /} {block name="css"}
<link rel="stylesheet" href="__INDEX__/css/create-index.css"> {/block} {block name="container"}
<style>
.form-groups{width:33.3%}
.form-group{width:100%;}
.col-sm-12{padding:0px;}
</style>
<div>
    <form action="" method="post" enctype="multipart/form-data">
        <div class="panel-body panel-body-nopadding" id="print" style="display:flex;flex-flow:row wrap;">
            <label class="col-sm-12 control-label" style="background: #7F7F7F;text-align: center;color: #000;">订单信息
             <div style="display: inline-block;background: #7F7F7F;padding-left:200px;font-size: 12px">运单号:
                <input type="text" style="background: #7F7F7F;border:0; color: #fff" name="order[pro_num]" readonly="readonly" value="{$data['yundan_num'] ?? '暂无'}">
                发货时间：
                <input type="text" style="background: #7F7F7F;border:0; color: #fff" name="order[pro_num]" readonly="readonly"
                {if condition="$data['fahuo_time'] gt 0"}    
                value="{$data.fahuo_time|date='Y-m-d H:i:s',###}
                {else /}
                value="暂无"
                {/if}    
                ">
            </div>
        </label>

        <div class="form-groups" >
            <label class="col-sm-1 control-label">
               <span>*</span>订单状态：</label>
               <div class="col-sm-6">
                   <span style="color: red">
                    {if condition="$data['status'] eq 'caiwu'"}待财审{/if}
                    {if condition="$data['status'] eq 'cheng'"}待上传压缩包{/if}
                    {if condition="$data['status'] eq 'reject'"}已驳回{/if}
                    {if condition="$data['status'] eq 'upload'"}待下载{/if}
                    {if condition="$data['status'] eq 'download'"}待发货{/if}
                    {if condition="$data['status'] eq 'success'"}已发货{/if}
                </span>
            </div>
        </div>
        <div class="form-groups" >
           <label class="col-sm-1 control-label">
               <span>*</span>订单创建时间：</label>
               <div class="col-sm-6">
                  {$data.addtime|date='Y-m-d H:i:s',###}
              </div>
          </div>
          <div class="form-groups" >
            <label class="col-sm-1 control-label">
                <span>*</span>财务审核者：</label>
                <div class="col-sm-6">
                  {$data['caiwu_name'] }
              </div>
          </div>
          <div class="form-groups" >
             <label class="col-sm-1 control-label">
              <span>*</span>审核时间：</label>
              <div class="col-sm-6">
                {$data['caiwu_time']}
            </div>
        </div>
        <div class="form-groups" >
           <label class="col-sm-1 control-label">
              <span>*</span>压缩文件上传者：</label>
              <div class="col-sm-6">
                {$data.upload_name}
              </div>
          </div>
          <div class="form-groups" >
             <label class="col-sm-1 control-label">
               <span>*</span>上传时间：</label>
               <div class="col-sm-6">
                {$data.upload_time}
               </div>
           </div>
           <div class="form-groups" >
               <label class="col-sm-1 control-label">
                <span>*</span>下载信息者：</label>
                <div class="col-sm-6">
                  {$data.download_name}
                </div>
            </div>
            <div class="form-groups" >
               <label class="col-sm-1 control-label">
                   <span>*</span>下载时间：</label>
                   <div class="col-sm-6">
                    {$data.download_time}
                   </div>
               </div>
                <div class="form-groups" >
               <label class="col-sm-1 control-label">
                <span>*</span>条码生成者：</label>
                <div class="col-sm-6">
                  {$data.code_name}
                </div>
            </div>
            <div class="form-groups" >
               <label class="col-sm-1 control-label">
                   <span>*</span>生成条码时间：</label>
                   <div class="col-sm-6">
                    {$data.code_time}
                   </div>
               </div>
               <div class="form-group">
                <label class="col-sm-12 control-label" style="background: #7F7F7F;text-align: center;color: #000;">订单信息
                    <div style="display: inline-block;background: #7F7F7F;padding-right: 20px;float: right;font-size: 12px">
                      <font style="color: #fff"> 商品条码：{$data.code ?? '暂无'}</font>
                    </div>
                </label>
                <div class="col-sm-12" >
                    <table class="table ">
                        <tr>
                            <td>商品名称</td>
                            <td colspan="2"><input type="text" name="name" value="{$data.name ?? ''}" readonly></td>
                            <td>面料编号</td>
                            <td colspan="2"><input type="text" name="ml_num"  value="{$data.ml_num ?? ''}" style="width: 100%" readonly></td>
                            <td>面料属性</td>
                            <td colspan="2"><input type="text" name="ml_style" value="{$data.ml_style ?? ''}"></td>
                        </tr>
                        <tr>
                          <td>性别</td>
                          <td colspan="2">
                            <input type="radio" value="8" name="sex" style="width: 15%" disabled>男 
                            <input type="radio" value="6" name="sex" style="width: 15%" disabled>女
                        </td>
                        <td>年份</td>
                        <td colspan="2"> <input type="text" id="year" name="year" readonly></td>
                        <td>季节</td>
                        <td colspan="2"> 
                            <select name="season" id="season" disabled style="width: 100%;height: 100%;border: 0px;outline: none;">
                                <option value="1">春季</option>
                                <option value="2">夏季</option>
                                <option value="3">秋季</option>
                                <option value="4">冬季</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td  style="height: 40px">品类</td>
                        <td colspan="8" style="height: 40px">
                         {volist name="category" id="vo"}
                         <input type="radio" value="{$vo.id}" name="category" style="width: auto; margin-left: 10px;" disabled>{$vo.value}
                         {/volist}
                     </td>
                 </tr>
                 <tr>
                    <tr>
                     <td>颜色</td>
                     <td colspan="2">
                      <select name="color" id="color" disabled style="width: 100%;height: 100%;border: 0px;outline: none;">
                        {volist name="color" id="vo"}
                        <option value="{$vo.id}">{$vo.value}</option>
                        {/volist}
                    </select>
                </td>
                <td>号型</td>
                <td colspan="1">
                   <select name="size" id="size" disabled style="width: 100%;height: 100%;border: 0px;outline: none;">
                    {volist name="size" id="vo"}
                    <option value="{$vo.id}">{$vo.value}</option>
                    {/volist}
                </select>
            </td>
            <td>价格</td>
            <td colspan="1">
             <input type="text" style="display: inline-block;width:auto;" name="price" value="{$data.price ?? ''}" readonly>
         </td>
         <td>数量</td>
         <td colspan="1">
           <input type="text" style="display: inline-block;width: auto;" name="num" value="{$data.num ?? ''}"  readonly>
       </td>
           </tr>
           <td >款式细节</td>
           <td  colspan="8" >
            <textarea name="detail" id="" readonly cols="30" rows="10" style="border:0px;width: 100%;outline: none;">
                {$data.detail ?? '暂无'}
            </textarea>
        </td>
        </tr>
        <tr></tr>
        </table>
        </div>  
    </div> 
<div class="panel-footer" style="width: 100%;">
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3" style="display: flex;justify-content: center;">
            <input type="hidden" name="id" value="{$data['id'] ?? ''}">
            <button type="button" class="btn btn-primary" onclick="javascript:history.back(-1);" style="margin:0 20px;">返回</button>
        </div>
    </div>
</div>
<!-- panel-footer -->
</form>
</div>
{/block} {block name="js"}
<script>
 $(document).ready(function() {
    var myDate = new Date();
    var y = myDate.getFullYear();  //获取当前年份
    $('#year').val(y);
    $("[name='category'][value='{$data.category ?? '1'}']").attr("checked", true);
    $("[name='sex'][value='{$data.sex ?? '8'}']").attr("checked", true);
    $("[name='size']").find("[value='{$data.size ?? '1'}']").attr("selected", true);
    $("[name='color']").find("[value='{$data.color ?? '1'}']").attr("selected", true);
    $("[name='season']").find("[value='{$data.season ?? '1'}']").attr("selected", true);
});
</script>
{/block}